package com.woyou.model;

import org.androidannotations.annotations.Bean;
import org.androidannotations.annotations.EBean;
import org.androidannotations.annotations.RootContext;
import org.androidannotations.annotations.sharedpreferences.Pref;

import com.woyou.model.dao.AddressDao;
import com.woyou.model.dao.SearchKeyDao;
import com.woyou.model.dao.UserDao_;
import com.woyou.service.RetrofitWrapper;

import android.content.Context;

/**
 * 业务逻辑控制器
 * UI界面的数据控制器基类
 * 所有数据控制器应当继承此基类
 * @author longtao.li
 *
 */
@EBean
public abstract class SuperModel {
	
	@Bean RetrofitWrapper mNeWrapper;  //服务的包装类
	
	@RootContext Context mContext;
	
	@Pref UserDao_ mUserDao;
	
	@Bean AddressDao addressDao;
	
	@Bean SearchKeyDao mSearchKeyDao;
	
	protected abstract void onInit();

}
